package com.mobicartel.androidto;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Nav extends Activity implements OnClickListener {

	private Button btn_nav;
	
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.nav);
		
		btn_nav = (Button) findViewById(R.id.btn_nav);
		btn_nav.setOnClickListener(this);
	}

	@Override
	public void onClick(View view) {
		switch(view.getId()) {
		case(R.id.btn_nav):
			Intent mapIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=206+beverley+st+toronto"));
	       	startActivity(mapIntent); 
			break;
		}
		
	}
	
	
	
}
